import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/main.less'
import utils from './assets/js/utils.js'
import './assets/css/element-variables.scss'
import { Loading } from 'element-ui';

import './store/modules/chat'

Vue.config.productionTip = false
Vue.prototype.Loading=Loading
Vue.use(ElementUI)

Vue.mixin({
  data() {
    return {
      PAGE_LAYOUT: 'prev, pager, next, sizes, total',
      NO_DATA: '未查询到数据'
    }
  },
  methods: {
    spliceDateString(value) {
      return value && ~value.indexOf(' ') ? value.split(' ')[0] : value
    }
  }
})

window.utils = utils
window.Vue = Vue

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
